#include<iostream>
#include"Sales_item.h"
int main()
{
  Sales_item sum,item1,item2;
  std::cout<<"请输入ISBN相同的Sales_item对象："<<std::endl;
  std::cin>>sum;
  item1=sum;
  while(std::cin>>item2){
    if (compareIsbn(item1,item2))
    sum+=item2;
    else
      std::cout<<"销售记录的ISBN不同"<<std::endl;
  }
  std::cout<<"和为："<<sum<<std::endl;
  return 0;
}
